<%@ include file="/common/taglib.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<style type="text/css">@import url(${ctx}/js/calendar/skins/aqua/theme.css);</style>
<!-- import the calendar script -->
<script type="text/javascript" src="${ctx}/js/calendar/calendar.js"></script>
<script type="text/javascript" src="${ctx}/js/calendar/calendar-setup.js"></script>

<!-- import the language module -->
<script type="text/javascript" src="${ctx}/js/calendar/lang/calendar-en.js"></script>
<center>
<div class="maintable"><br>
<div class="subtable nav" style="width: 100%">
<a href="index.php">外地人在北京</a> &raquo;
<a href="memcp.php">控制面板</a> &raquo;
编辑个人资料
</div><br>

<table cellspacing="0" cellpadding="0" width="100%"><tr>
<jsp:include page="leftMenu.jsp" />
<td valign="top" style="padding-left:5px !important">



 <s:form action="/controlPanel/editUserData.do" method="post">
<input type="hidden" name="formhash" value="315d522d">
<div class="spaceborder">
<table cellspacing="0" cellpadding="5" align="center" width="100%">
<tr>
<td colspan="2" class="header">编辑个人资料</td>
</tr>
<tr>
<td class="altbg1"><span class="bold">昵称</span></td>
<td class="altbg2"><s:text name="oldUser.nickname" class="t" id="nickname" value="${actionBean.oldUser.nickname}"/>
                 <s:errors field="oldUser.nickname"/></td>
</tr>

<tr>
<td class="altbg1"><span class="bold">电子邮件</span></td>
<td class="altbg2"> <s:text name="oldUser.email" class="reginput" id="email" size="40" value="${actionBean.oldUser.email}"/>
        <s:errors field="oldUser.email"/></td>
</tr>


<tr><td colspan="2" class="singleborder">&nbsp;</td></tr>
<tr>
<td class="altbg1" width="21%"><span class="bold">性别</span></td>
<td class="altbg2">
    男
            <s:radio value="1" name="oldUser.sex"></s:radio>
            女
            <s:radio value="2" name="oldUser.sex"></s:radio>
            保密
             <s:radio value="0" name="oldUser.sex"></s:radio>
</td></tr>

<tr>
<td class="altbg1"><span class="bold">生日</span></td>
<td class="altbg2">
            <input type="text" name="userProfile.birthDay" size="20" class="t" id="birthDay" value="${actionBean.userProfile.birthDay}"/>
            <button id="birthDayDate">....</button>
            <script type="text/javascript">
Calendar.setup(
{
inputField : "birthDay", // ID of the input field
ifFormat : "%Y-%m-%d", // the date format
button : "birthDayDate" // ID of the button
}
);
</script>
            <s:errors field="userProfile.birthDay"></s:errors>
        </td>
</tr>

<tr>
<td class="altbg1" width="21%"><span class="bold">来自</span></td>
<td class="altbg2"><s:text name="userProfile.address" class="t" size="50" value="${actionBean.userProfile.address}"></s:text></td>
</tr>

<tr>
<td class="altbg1" width="21%"><span class="bold">主页</span></td>
<td class="altbg2"><s:text name="userProfile.website" class="t" size="40" value="${actionBean.userProfile.website}"></s:text></td>
</tr>

<tr>
<td class="altbg1" width="21%"><span class="bold">QQ</span></td>
<td class="altbg2"><s:text name="userProfile.imQq" class="t" size="20" value="${actionBean.userProfile.imQq}"></s:text></td>
</tr>

<tr>
<td class="altbg1" width="21%"><span class="bold">MSN</span></td>
<td class="altbg2"><s:text name="userProfile.imMsn" class="t" size="20" value="${actionBean.userProfile.imMsn}"></s:text></td>
</tr>
<tr>
<td class="altbg1" valign="top" width="21%"><span class="bold">自我介绍 (200 字节以内)</span><br><br>
</td>
<td class="altbg2"><div id="biopreview"></div><s:textarea name="userProfile.introduce" cols="45" rows="5" style="height:134px" value="${actionBean.userProfile.introduce}"/>
</td>
</tr>

</table></div><br>

<div class="option" style="width: 100%"><div class="submitbutton">
    <s:hidden name="oldUser.id" value="${actionBean.oldUser.id}"/>
   <input type="submit" value="提 &nbsp; 交" name="editUserData"/>
    </div></div>
</s:form>

</td></tr></table>
</div>
</center>
